@include('admin.common.header')
<!--tab nav start-->
<section class="panel">
    <div class="panel-body">
        <div class="tab-content">
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        @if($user['pageData']['count'] == 0)
                            <div class="no-data">暂无要查询的内容</div>
                        @else
                            <table class="table table-striped table-advance table-hover">
                                <thead>
                                <tr>
                                    <th>用户昵称</th>
                                    <th>用户图像</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($user['list'] as $u)
                                    <tr>
                                        <td>{{ $u->nick_name }}</td>
                                        <td><img style="width: 200px" src="{{ $u->headimgurl }}"></td>
                                        <td>
                                            <button href="/admin/user/delete/{{ $u->id }}" class="delete btn btn-danger btn-xs"><i class="icon-trash "></i></button>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        @endif
                    </section>
                </div>
            </div>
            @if($user['pageData']['lastPage'] > 1)
                <div id="page" style="width:500px;margin: 0 auto;">
                    {!!  $user['pageData']['pageHtml'] !!}
                </div>
            @endif
        </div>
    </div>
</section>
<!--tab nav start-->

@include('admin.common.footer')